1. downloader
- Python script requesting Citation information to KIPRIS PLUS OPEN API.
- Need to adjust request url(line 10) with your own service key
- Result response will be saved as .xml file.

2. errorlist_redownloader
- detecting download error and re-requesting.

3. parser
- parsing the downloaded .xml files to .csv file
- "citation.csv" includes  "citing", "order", "cited_ctr", "cited_num", "cited_code", "cited_date", "cited_typecodename", "cited_typecode"

4. citation_byappnum folder 
- cleans citation.csv and drops duplicates leaving "citing", "order", "cited_num", "cited_code", "cited_typecode", "registernum", "opennum", "appnum_registered", "appnum_open"
(1) numbers.py
- Parses xml files and makes <appnum - registernum -  opennum - publicnum> structure in a csv file 
(2) numbers_duplicates.do
- From "numbers.dta" which is made from importing the csv file made in (1), this code cleans duplicates of 'register number (��Ϲ�ȣ)' or 'open number (������ȣ)'
- The results are 'numbers_2002-2016_duplicatesdropped.dta' and 'numbers_opennumdropped.dta'. 
- These two dta files are used to make 'citation.dta' in (3) 
- The following register numbers are dropped manually as they are matched to multiple application numbers
	- 10-1241806-0000 (registernum for appnum 1020100069721) => drop appnum 1020100066316 
	- 10-1424071-0000 (registernum for appnum 1020120023814) => drop appnum 1020120019425
- The following open numbers are cleaned manually as they are matched to multiple application numbers
	- 10-1993-0022549 => registernum of appnum 1019930006545 is replaced into 10-1993-0022550 
	- 10-2000-0062651 => appnum 1019990033113 and appnum 1020000009544 are dropped 
(3) citation_byappnumber.do
- creates citation.dta 
- data for citing-cited relationship of application numbers of patents 'granted' during 2002-2016
- In the raw csv file(citation.csv), cited patents are identified by their 'open number'(if its cited_code is 'A') or 'register number' (if its cited_code is 'B1')  
